import React, { Component } from 'react'

class Detail extends Component {
  state = {
    proid: ''
  }
  componentDidMount () {
    this.setState({
      proid: this.props.match.params.proid
    })
  }
  render() {
    console.log(this.props)
    return (
      <div className="box">
        <header className="header">
          <ul>
            <li>左</li>
            <li>中</li>
            <li>右</li>
          </ul>
        </header>
        <div className="content">
          详情 - { this.state.proid }
        </div>
      </div>
    )
  }
}
export default Detail
